public class Node {

	public Node(int value)
	{
		item = value;
		next = null;
	}
	
	public void setItem(int value)
	{
		item = value;
	}
	
	public int getItem()
	{
		return item;
	}
	
	public void setNext(Node nextNode)
	{
		next = nextNode;
	}
	
	public Node getNext()
	{
		return next;
	}
	
	private int item;
	private Node next;
}
